package org.dromara.community.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dromara.community.entity.AsCommunityAnnouncements;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsCommunityAnnouncementsDTO extends AsCommunityAnnouncements {

    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Schema(description = "主菜单", example = "General")
    private String category;

    @Schema(description = "子菜单", example = "Announcements")
    private String subcategory;

    @Schema(description = "标题", example = "Community Update")
    private String title;

    @Schema(description = "内容", example = "This is the content of the community announcement.")
    private String description;

    @Schema(description = "公告关联的标签", example = "update, community")
    private String tag;


    @Schema(description = "存入url")
    private List<String> urlList;
}
